what happens when I don't manage to call `recv` fast enough?
Posted
by
amn
on Stack Overflow
See other posts from Stack Overflow
or by amn
Published on 2011-01-15T16:53:30Z
Indexed on
2011/01/15
17:53 UTC
Read the original article
Hit count: 170
sockets
|berkeley-sockets
Hi all,
I want to account for a possible scenario where clients of my TCP/IP stream socket service send data to my service faster than it manages to move the data to its buffers (I am talking about application buffers, naturally) with recv
and work with it. So basically, what happens in such scenarios? Obviously, some sort of service beneath my service which is a user application, has to receive incoming stream and store it somewhere until I issue 'recv', right? Most certainly the operating system. I don't want to re-open old questions, but I can't seem to find an answer to this seemingly obvious one?
© Stack Overflow or respective owner